package com.topone.Utils;

import com.topone.VO.ResultVO;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/12/5,0005.
 */
public class ResultVOUntil implements Serializable{
    public  static ResultVO success(Object object){
        ResultVO resultVo=new ResultVO();
        resultVo.setCode(0);
        resultVo.setMsg("成功");
        resultVo.setData(object);
        return  resultVo;
    }
    public static  ResultVO success(){
        return success(null);
    }
    public static  ResultVO error(Integer code,String msg){
        ResultVO resultVo=new ResultVO();
        resultVo.setCode(code);
        resultVo.setMsg(msg);
        return resultVo;
    }
}
